package ricm4.ep.tp3;

import java.util.HashMap;

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 *
 * @author fx
 */
public class Main {
        public static void main(String[] args){		
		for(E_Mode mode:E_Mode.values()){
			for(E_Loi loi:E_Loi.values()){
				Echeancier ech=new Echeancier(mode, loi);
				ech.run();
				while(ech.getResult()==null || ech.getResult().isEmpty()){}
				HashMap<Integer, Evenement> result=ech.getResult();
				System.out.println("==============");
				System.out.println("Mode:"+mode.name()+", Loi:"+loi.name());
				System.out.println("==============");
				for(int i=0; i<result.size();i++){
					if(result.get(i)!=null){
						System.out.println(result.get(i).toString());
					}
				}
				System.out.println("==============");
			}
		}
	}
}
